<?php

  require_once "JooS/PHPackager/Instance.php";
  
  class JooSX_Package_phpunit_testing_1_0 extends JooS_PHPackager_Instance {
    public $_publicVersion;

    public $_publicStage;

    protected static $_name = 'phpunit_testing';
    
    protected static $_version = '1.0';
    
    protected static $_control = '<?xml version="1.0"?>
<control><package name="PHPUnit_Testing" version="1.0">
  <depends><![CDATA[
    JooS >= 2.0
  ]]></depends>
</package></control>';

    protected function _initDepends() {
      return array(
        $this->getRelationByVersion('joos','>=','2.0'),
        $this->getRelationByExtension("gd"),
        $this->getRelationByIniGet("include_path", "qqq")
      );
    }

    /**
     * @param string $stage
     */
    protected function _add($stage) {
      $this->_publicVersion = $this->getVariable("version");
      $this->_publicStage = $stage;
    }

    /**
     * @param string $stage
     */
    protected function _delete($stage) {
      $this->_publicVersion = $this->getVariable("version");
      $this->_publicStage = $stage;
    }
  }
